package zhoufu.sz.sanxiao_check.models;

import android.databinding.BaseObservable;
import java.util.List;

/**
 * Created by hyc on 16/5/11.
 */
public class BaseModel<T>  extends BaseObservable
{
    String ErrNum;
    String ErrMsg;
    public List<T> data;

    int PageCount;

    public String getErrNum() {
        return ErrNum;
    }

    public void setErrNum(String errNum) {
        ErrNum = errNum;
    }

    public String getErrMsg() {
        return ErrMsg;
    }

    public void setErrMsg(String errMsg) {
        ErrMsg = errMsg;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public int getPageCount() {
        return PageCount;
    }

    public void setPageCount(int pageCount) {
        PageCount = pageCount;
    }

    public boolean isSuccess() {
        return "0".equals(ErrNum);
    }

}
